import React from 'react';
import {PageHeader} from 'antd';

type IProps = {
  pageTitle: string;
  pageSubTitle: string;
  extraBtns: string;
  pageContent: string;
};
export default (props: IProps) => (
  <PageHeader
    onBack={() => window.history.back()}
    title={props.pageTitle}
    subTitle={props.pageSubTitle}
    extra={props.extraBtns}
    footer={props.pageContent}
  />
);
